from es import getAddonPath
from cfglib import AddonCFG
from os.path import join

class configFile(object):
	def __init__(self, fileName):
		self.fileName = str(fileName)
		self.configObject = AddonCFG(join(getAddonPath('superdice'), 'configs', self.fileName + '.cfg'))

	def __getattr__(self, attr):
		return getattr(self.configObject, attr)
